package com.py.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 货品类型对象 py_product_type
 * 
 * @author he
 * @date 2024-11-21
 */
public class ProductType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long productTypeId;


    /** 货品类型编号 */
    @Excel(name = "货品类型编号")
    private String productTypeCode;

    /** 货品类型名称 */
    @Excel(name = "货品类型名称")
    private String productTypeName;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 父节点 */
    private String parentId;

    /** 状态（0.停用 1.启用） */
    @Excel(name = "状态", readConverterExp = "0=.停用,1=.启用")
    private String productTypeStatus;

    /** 备注 */
    @Excel(name = "备注")
    private String productTypeRemark;

    /** 逻辑删除 */
    private String isDelete;

     @Transient
    private Integer number;
    @Transient
    private Integer codeId;

    public void setProductTypeId(Long productTypeId) 
    {
        this.productTypeId = productTypeId;
    }

    public Long getProductTypeId() 
    {
        return productTypeId;
    }
    public void setProductTypeCode(String productTypeCode) 
    {
        this.productTypeCode = productTypeCode;
    }

    public String getProductTypeCode() 
    {
        return productTypeCode;
    }
    public void setProductTypeName(String productTypeName) 
    {
        this.productTypeName = productTypeName;
    }

    public String getProductTypeName() 
    {
        return productTypeName;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public void setProductTypeStatus(String productTypeStatus)
    {
        this.productTypeStatus = productTypeStatus;
    }

    public String getProductTypeStatus() 
    {
        return productTypeStatus;
    }
    public void setProductTypeRemark(String productTypeRemark) 
    {
        this.productTypeRemark = productTypeRemark;
    }

    public String getProductTypeRemark() 
    {
        return productTypeRemark;
    }
    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getCodeId() {
        return codeId;
    }

    public void setCodeId(Integer codeId) {
        this.codeId = codeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productTypeId", getProductTypeId())
            .append("productTypeCode", getProductTypeCode())
            .append("productTypeName", getProductTypeName())
            .append("sort", getSort())
            .append("parentId", getParentId())
            .append("productTypeStatus", getProductTypeStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("productTypeRemark", getProductTypeRemark())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
